// 以独立文件的方式定义 vuex的 子库
export default {
  state: {
    list: [{ name: "手机" }, { name: "电脑" }],
    size: 1000,
    num: 99999,
  },
  getters: {},
  mutations: {
    setProductList(state, nv) {
      state.size = nv;
    },
    setProductNum(state, nv) {
      state.num = nv;
    },
  },
  actions: {},
};
